<style type="text/css">

    #top-content .cont{
        margin: 10px;
        background: white;
        padding: 10px;
    }
    .value{
        font-size: 18px;
    }
</style>
<div class="row gap-3" id="top-content" style="display: flex">
{{--    <div class="col-md-3">--}}
{{--    </div>--}}
    @foreach($top as $item)
        <div class="col-md-2 cont">
            <div class="h6">{{$item['name']}}</div>
            <div class="text-success value">{{$item['value']}}</div>
        </div>
    @endforeach
</div>